﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StoreProject.Entity
{
    [Serializable]
    [Table("Orders")]
    public class OrderEntity
    {
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 制令单号
        /// </summary>
        public string OrderId { get; set; }

        public string ProcessFlowId { get; set; }

        /// <summary>
        /// 线型
        /// </summary>
        public string LineType { get; set; }

        /// <summary>
        /// 成品名称
        /// </summary>
        public string FinishedProductName { get; set; }

        /// <summary>
        /// 半成品名称
        /// </summary>
        public string SemiFinishedProductName { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string Batch { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public string Customer { get; set; }

        /// <summary>
        /// 计划数
        /// </summary>
        public int PlanNums { get; set; }

        /// <summary>
        /// 内外销
        /// </summary>
        public string DomesticAndExportSales { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime RequestedDate { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string  Operator { get; set;}

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        public string? JuanNum { get; set; }

        public string DanZhong { get; set; }

        [IgnoreInsert]
        [IgnoreSelect]
        [IgnoreUpdate]
        public string ProcessFlowName { get; set; }
    }
}
